<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
		<title>作品更新</title>
		<link rel="shortcut icon" th:href="@{/picture/favicon.ico}"/>
		<link th:href="@{/css/auth/work_update.css}" rel="stylesheet">
		<script th:src="@{/js/jquery-3.4.1.min.js}" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" th:src="@{/js/auth/work_update.js}"></script>
</head>
<body>
<div class="full_box">
		<p><h3>[[${auth.nickName} ]]的全部作品</h3></p>
</div>
<table>
		<thead>
		<tr>
				<th>小说名</th>
				<th>类型</th>
				<th>状态</th>
				<th>字数</th>
				<th>简介</th>
				<th>最后更新时间</th>
				<th>点击量</th>
				<th>月票数</th>
				<th>下载量</th>
				<th>操作</th>
		</tr>
		</thead>
		<tbody>
				<tr th:each="auth,vs : ${auth.works}">
						<td class="bookName">[[${auth.bookName}]]</td>
						<td class="bookType">
								<span th:each="noveltype:${auth.bookType}">[[${noveltype}]]</span>
						</td>
						<td class="bookStatus">[[${auth.bookState}]]</td>
						<td class="bookWords">[[${auth.bookWords}]]</td>
						<td class="bookIntro">[[${auth.bookIntro}]]</td>
						<td class="bookUpdate">[[${#dates.format(auth.updateTime, 'yyyy年MM月dd日')}]]</td>
						<td class="bookHits">[[${auth.totalHits}]]</td>
						<td class="bookMonthTicket">[[${auth.monthlyTickets}]]</td>
						<td class="bookDownloads">[[${auth.downloads}]]</td>
						<td><a th:href="@{'javascript:update('+${vs.index}+')'}">修改</a></td>
				</tr>
		</tbody>
</table>
<div id="mask">
		<div class="mask">
				<div class="tittle">
						编辑
						<span id="close_window">x</span>
				</div>
				<div class="cont">
						<input type="hidden" id="bookid">
						<label for="update_name">小说名： </label>
						<input type="text" name="book_name" id="update_name" value="" disabled/><br>
						<label for="update_type">小说类型： </label>
						<input type="text" name="noveltype" id="update_type" value="" disabled/><br>
						<span>小说状态：</span>连载<input type="radio" name="book_status" value="连载" class="update_status">完结<input
						type="radio" name="book_status" value="完结" class="update_status"><br>
						<label for="update_intro">小说简介：</label>
						<textarea id="update_intro" rows="7"></textarea><br>
						<button id="updata">更新</button>
						<button id="quit">取消</button>
				</div>
		</div>
</div>
</body>
</html>